home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 4 / Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso / Pearls / dev / Language / ace / include / Exec / initializers.h < prev    next >
C/C++ Source or Header  |  1995-10-07  |  882b  |  28 lines

  1. #ifndef EXEC_INITIALIZERS_H
  2. #define EXEC_INITIALIZERS_H 1
  3. /*
  4. ** initializers.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. #define OFFSET(structName,  structEntry) \
  17.                 (&(((STRUCT structName *) 0)->structEntry))
  18. #define INITBYTE(offset, value)  &He000, (SHORTINT) (offset), (SHORTINT) ((value)<<8)
  19. #define INITWORD(offset, value)  &Hd000, (SHORTINT) (offset), (SHORTINT) (value)
  20. #define INITLONG(offset, value)  &Hc000, (SHORTINT) (offset),  \
  21.                 (SHORTINT) ((value)>>16),  \
  22.                 (SHORTINT) ((value) & &Hffff)
  23. #define INITSTRUCT(size, offset, value, count) \
  24.                 (SHORTINT) (&Hc000|(size<<12)|(count<<8)| \
  25.                 ((SHORTINT) ((offset)>>16)),  \
  26.                 ((SHORTINT) (offset)) & &Hffff)
  27. #endif /* EXEC_INITIALIZERS_H */
  28.